<template>
  <div class="advert">
    <!-- 1.目录位置 -->
    <div class="nav">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>广告分类</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
  <div class="content">
    <div class="content-left">
      <ContentNav/> 
    </div>
    <div class="content-right">
      <ContentInfo/>
    </div>
  </div>
  <!-- 底部 -->
    <div class="table">
      <div class="header">
        <div class="title">商品信息</div>
      </div>
      <el-table border :data="tableData" style="width: 100%">
        <el-table-column prop="date" label="日期" width="180">
        </el-table-column>
        <el-table-column prop="name" label="姓名" width="180">
        </el-table-column>
        <el-table-column prop="phoneNum" label="联系电话" width="180">
        </el-table-column>
        <el-table-column prop="goods" label="商品名称" width="180">
        </el-table-column>
        <el-table-column prop="address" label="地址"> </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import ContentInfo from './ContentInfo.vue'
import ContentNav from './ContentNav.vue'
export default {
   components:{
    ContentInfo,
    ContentNav
   },
    data() {
    return {
      tableData: [
        {
          date: new Date().toLocaleString(),
          name: "张三",
          phoneNum:13700000000,
          goods:'华为p40',
          address: "广东省广州市从化区广州南方学院",
        },
        {
          date: new Date().toLocaleString(),
          name: "李四",
          phoneNum:13700000011,
          goods:'华为p40',
          address: "广东省广州市从化区广州南方学院",
        },
        {
          date: new Date().toLocaleString(),
          name: "王五",
          phoneNum:13700000022,
          goods:'华为p40',
          address: "广东省广州市从化区广州南方学院",
        },
        {
          date: new Date().toLocaleString(),
          name: "周六",
          phoneNum:13700000033,
          goods:'华为p40',
          address: "广东省广州市从化区广州南方学院",
        },
      ],
    };
  },
}
</script>

<style lang="less" scoped>
.advert{
  height: 600px;
  .nav {
  padding: 10px;
}
.content{  
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  .content-left{
    margin-left: 20px;
    width: 60%;
    height: 100%;
  }
  .content-right{
    margin-left: 80px;
    width:90%;
    height: 100%;
  }
  .custom-tree-node{
    display: inline-block;
    text-align: center;
    width: 100%;
  }
  .upload img{
    width: 200px;
  }
}
}
.table{     
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #eee;
  background: #fff;
  color: #666;
  .header {
  display: flex;
  padding: 10px;
  .title {
    text-align: center;
    font-size: 20px;
    flex: 1;
    color: #333;
    font-weight: bold;
  }
}
}
</style>